package db

import(

)

// func (d *TDb) Scans(obj any) (err error) {
// 	Scans2, err := pPlugin.Lookup("Scans")
// 	if err != nil {
// 		panic(err)
// 	}
// 	err = Scans2.(func(any, any)error)(d.Db, obj)

// 	return
// }
func (d *TDb) Scan(obj any) (err error) {
	Scan2, err := pPlugin.Lookup("Scan")
	if err != nil {
		panic(err)
	}
	err = Scan2.(func(any, any)error)(d.Db, obj)

	return
}
func (d *TDb) Count() (count int, err error) {
	Count2, err := pPlugin.Lookup("Count")
	if err != nil {
		panic(err)
	}
	count, err = Count2.(func(any)(int, error))(d.Db)

	return
}
func (d *TDb) Insert(insertData any) (err error) {
	Insert2, err := pPlugin.Lookup("Insert")
	if err != nil {
		panic(err)
	}
	err = Insert2.(func(any, any)(error))(d.Db, insertData)

	return
}
func (d *TDb) GetInsertSids() (insertSids []string) {
	GetInsertSids2, err := pPlugin.Lookup("GetInsertSids")
	if err != nil {
		panic(err)
	}
	insertSids = GetInsertSids2.(func(any)([]string))(d.Db)

	return
}
func (d *TDb) GetInsertSid() (insertSid string) {
	GetInsertSid2, err := pPlugin.Lookup("GetInsertSid")
	if err != nil {
		panic(err)
	}
	insertSid = GetInsertSid2.(func(any)(string))(d.Db)

	return
}
func (d *TDb) Update(updateData map[string]any) (err error) {
	Update2, err := pPlugin.Lookup("Update")
	if err != nil {
		panic(err)
	}
	err = Update2.(func(any, map[string]any)(error))(d.Db, updateData)

	return
}
func (d *TDb) Delete() (err error) {
	Delete2, err := pPlugin.Lookup("Delete")
	if err != nil {
		panic(err)
	}
	err = Delete2.(func(any)(error))(d.Db)

	return
}
func (d *TDb) GetAffectedNum() (affectedNum int) {
	GetAffectedNum2, err := pPlugin.Lookup("GetAffectedNum")
	if err != nil {
		panic(err)
	}
	affectedNum = GetAffectedNum2.(func(any)(int))(d.Db)

	return
}